/*
 * EventCase.cpp
 *
 *  Created on: 2012-12-7
 *      Author: yangentao@gmail.com
 */





#include "test.h"
#include "../src/yet/Thread.h"
#include "../src/yet/Event.h"

using namespace  yet;
static DWORD run(void* arg){
	Event* e = (Event* )arg;
	e->wait();
	return 0;
}
static void test(){
	Event e;
	Thread t;
	t.OnRun = &run;
	t.start(&e);
	e.notify();
	t.waitFinish();

}

TEST(Event, a){
	test();
	EXPECT_TRUE(true);//reach here
}
